package com.ruoyi.system.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 关联对象 skpl_like
 *
 * @author ruoyi
 * @date 2022-06-15
 */
public class SkplLike extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键id */
    @Excel(name = "主键id")
    private Long id;

    /** 对象id */
    @Excel(name = "对象id")
    private Long objId;

    /** 对象类型 */
    @Excel(name = "对象类型")
    private String objType;

    /** 用户id */
    @Excel(name = "用户id")
    private Long userId;

    /** 顶或踩 */
    @Excel(name = "顶或踩")
    private Integer isLike;

    /** 是否收藏 */
    @Excel(name = "是否收藏")
    private Integer isCollect;

    /** 是否删除 */
    @Excel(name = "是否删除")
    private Integer isDel;

    public void setObjId(Long objId)
    {
        this.objId = objId;
    }

    public Long getObjId()
    {
        return objId;
    }
    public void setObjType(String objType)
    {
        this.objType = objType;
    }

    public String getObjType()
    {
        return objType;
    }
    public void setUserId(Long userId)
    {
        this.userId = userId;
    }

    public Long getUserId()
    {
        return userId;
    }
    public void setIsLike(Integer isLike)
    {
        this.isLike = isLike;
    }

    public Integer getIsLike()
    {
        return isLike;
    }
    public void setIsCollect(Integer isCollect)
    {
        this.isCollect = isCollect;
    }

    public Integer getIsCollect()
    {
        return isCollect;
    }
    public void setIsDel(Integer isDel)
    {
        this.isDel = isDel;
    }

    public Integer getIsDel()
    {
        return isDel;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("objId", getObjId())
            .append("objType", getObjType())
            .append("userId", getUserId())
            .append("isLike", getIsLike())
            .append("isCollect", getIsCollect())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .append("isDel", getIsDel())
            .toString();
    }
}
